<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<tr>
    <td>
        <label>Title: </label>
    </td>
    <td colspan="2">
        <stripes:text name="event.title" />
		<stripes:errors field="event.title" />
    </td>
</tr>
<tr>
    <td>
        <label>Description: </label>
    </td>
    <td colspan="2">
        <stripes:textarea name="event.description" style="width: 252px; height: 60px;"/>
		<stripes:errors field="event.description" />
    </td>
</tr>
<tr>
    <td>
        <label>Repeat? </label>
    </td>
    <td colspan="2">
        <stripes:checkbox id="${param.prefix}repeatBox" name="event.repeated" onchange="toggleFrequency('${param.prefix}');"/>
    </td>
</tr>
<tr class="repeatOptions" style="display:none">
    <td>
        <label>How Often: </label>
    </td>
    <td colspan="2">
        <stripes:select name="event.frequency">
            <stripes:options-enumeration enum="durst.data.Event.RepeatFrequency"/>
        </stripes:select>
		<stripes:errors field="event.frequency" />
    </td>
</tr>
<tr class="repeatOptions" style="display:none">
    <td>
        <label>Until: </label>
    </td>
    <td colspan="2">
        <stripes:text name="event.doNotRepeatPast" class="datepicker" />
		<stripes:errors field="event.doNotRepeatPast" />
    </td>
</tr>
<tr>
    <td>
        <label>Start Time: </label>
    </td>
    <td colspan="2">
        <stripes:text name="event.startTime" class="datepicker" />
		<stripes:errors field="event.startTime" />
    </td>
</tr>
<tr>
    <td>
        <label>End Time: </label>
    </td>
    <td colspan="2">
        <stripes:text name="event.endTime" class="datepicker" />
		<stripes:errors field="event.endTime" />
    </td>
</tr>
<c:if test="${param.submit != null}">
<tr>
    <td></td>
    <td>
        <stripes:submit name="${param.action}" value="${param.submit}" />
    </td>
</tr>
</c:if>